#!/bin/bash

cat /proc/$1/maps | awk '{print $6}' | grep '^/.*\.so[.0-9]*' | sort | uniq

